<?php
/*
 * Created  : 2009-6-16
 * Founder  : Shideqin
 * Project  : browseStore
 * File     : store_config.inc.php
 * CopyRight: 2006-2009 AoDian Technology, Inc.
 */

if (!defined('ACCOUNT_INIT'))
	exit ('Access Denied!');
require_once 'db_name_config.inc.php'; 
include_once('../store/library/sqlConfig.php');
include_once('../common/adodb/adodb.inc.php');
if (is_object($conn) == FALSE) {
	$conn = & ADONewConnection('mysqli');
	$conn->Connect($_SERVER["kkyooDB_HOST"],$_SERVER["kkyooDB_NAME"],$_SERVER["kkyooDB_PASS"], $Kstore);
	$conn->debug = false;
}

$db_core = new mysqli($_SERVER["kkyooDB_HOST"],$_SERVER["kkyooDB_NAME"],$_SERVER["kkyooDB_PASS"], $Kim);
if (mysqli_connect_errno()) {
	exit ('Connection Failure!');
}
function close_conn($link) {
	mysqli_close($link);
}
function free_result($result) {
	mysqli_free_result($result);
}
function next_result($link) {
	mysqli_next_result($link);
}
function fetch_array($result) {
	$i = 0;
	while ($row = $result->fetch_array()) {
		$row_arr[$i] = $row;
		$i++;
	}
	return $row_arr;
}
?>